package com.ying.dogying.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ying.dogying.entity.ImPost;
import com.ying.dogying.entity.dto.ImPostDto;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 李华明
 * @since 2020-06-01
 */
public interface ImPostDao extends BaseMapper<ImPost> {

    IPage<ImPostDto> selectByParams(Page page, @Param(Constants.WRAPPER) QueryWrapper wrapper);

    ImPostDto selectOneByParams(@Param(Constants.WRAPPER) QueryWrapper wrapper);
}
